package com.design.singleton.hungry;

/**
 * @auther LiZiBa
 * @date 2020/8/7 22:48
 * @description:
 **/
public class HungryStaticSingleton {
    // 先静态，后动态
    // 先上后下
    // 先属性后方法

    private static final HungryStaticSingleton hungryStaticSingleton;

    static{
        hungryStaticSingleton = new HungryStaticSingleton();
    }

    private HungryStaticSingleton() {
    }

    public static HungryStaticSingleton getInstance(){
        return hungryStaticSingleton;
    }
}
